import { Injectable } from '@angular/core';
// ng-zorro
import { NzMessageService } from 'ng-zorro-antd';
@Injectable({
  providedIn: 'root'
})
export class MessageService {

  constructor(private message: NzMessageService) { }

  createMessage(rel: boolean, msg: string): void {
    let type: string = rel? 'success' : 'error';
    this.message.create(type, msg);
  }
  
}
